package com.bootdo.mall.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 订单日志
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-25 16:19:47
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class MallOrderLog extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//订单号
		@HapiFeild("订单号")
	private String orderId;
	
	//商品ID
		@HapiFeild("商品ID")
	private Long goodId;
	
	//商品名
		@HapiFeild("商品名")
	private String goodName;
	
	//商品单价
		@HapiFeild("商品单价")
	private Double price;
	
	//商品数量
		@HapiFeild("商品数量")
	private Integer goodNum;
	
	//商品总数
		@HapiFeild("商品总数")
	private Integer totalNum;
	
	//商品总价
		@HapiFeild("商品总价")
	private Double totalPrice;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//商品图片
		@HapiFeild("商品图片")
	private String goodPic;

	//邮费
	private Double freightMoney;


	//规格
	private Long  specsId;
	private String specsName;

	//分类
	private Long goodCatetoryId;
	private String goodCatetoryName;

	//返回积分  做帐用
	private Double returnJifen;

	//是否退货  1是已退货
	private Integer isTuiHuo;


	/**
	 * 退款参数
	 */
	private Integer tkNumber;
	private Double tkPrice;

    public MallOrderLog(){
		this.tkNumber = 0;
		this.tkPrice = 0d;
    	this.freightMoney = 0d;
    	this.createTime = new Date();
    	this.returnJifen = 0d;
    	this.isTuiHuo = 0;
    }

	public Integer getTkNumber() {
		return tkNumber;
	}

	public void setTkNumber(Integer tkNumber) {
		this.tkNumber = tkNumber;
	}

	public Double getTkPrice() {
		return tkPrice;
	}

	public void setTkPrice(Double tkPrice) {
		this.tkPrice = tkPrice;
	}

	public Integer getIsTuiHuo() {
		return isTuiHuo;
	}

	public void setIsTuiHuo(Integer isTuiHuo) {
		this.isTuiHuo = isTuiHuo;
	}

	public Double getReturnJifen() {
		return returnJifen;
	}

	public void setReturnJifen(Double returnJifen) {
		this.returnJifen = returnJifen;
	}

	public Long getSpecsId() {
		return specsId;
	}

	public void setSpecsId(Long specsId) {
		this.specsId = specsId;
	}

	public String getSpecsName() {
		return specsName;
	}

	public void setSpecsName(String specsName) {
		this.specsName = specsName;
	}

	public Long getGoodCatetoryId() {
		return goodCatetoryId;
	}

	public void setGoodCatetoryId(Long goodCatetoryId) {
		this.goodCatetoryId = goodCatetoryId;
	}

	public String getGoodCatetoryName() {
		return goodCatetoryName;
	}

	public void setGoodCatetoryName(String goodCatetoryName) {
		this.goodCatetoryName = goodCatetoryName;
	}

	public Double getFreightMoney() {
		return freightMoney;
	}

	public void setFreightMoney(Double freightMoney) {
		this.freightMoney = freightMoney;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * 设置：商品ID
	 */
	public void setGoodId(Long goodId) {
		this.goodId = goodId;
	}
	/**
	 * 获取：商品ID
	 */
	public Long getGoodId() {
		return goodId;
	}
	/**
	 * 设置：商品名
	 */
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}
	/**
	 * 获取：商品名
	 */
	public String getGoodName() {
		return goodName;
	}
	/**
	 * 设置：商品单价
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	/**
	 * 获取：商品单价
	 */
	public Double getPrice() {
		return price;
	}
	/**
	 * 设置：商品数量
	 */
	public void setGoodNum(Integer goodNum) {
		this.goodNum = goodNum;
	}
	/**
	 * 获取：商品数量
	 */
	public Integer getGoodNum() {
		return goodNum;
	}
	/**
	 * 设置：商品总数
	 */
	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}
	/**
	 * 获取：商品总数
	 */
	public Integer getTotalNum() {
		return totalNum;
	}
	/**
	 * 设置：商品总价
	 */
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	/**
	 * 获取：商品总价
	 */
	public Double getTotalPrice() {
		return totalPrice;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：商品图片
	 */
	public void setGoodPic(String goodPic) {
		this.goodPic = goodPic;
	}
	/**
	 * 获取：商品图片
	 */
	public String getGoodPic() {
		return goodPic;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
